package caro.client.gui.templates;

import javax.swing.ImageIcon;
import javax.swing.JButton;

/**
 * Class MyButton
 * @author Thanh Nhan
 * @Since Aug 28, 2011
 * @Version 1.0
 */
public class MyButton extends JButton{
    public MyButton(int x, int y, int w, int h, ImageIcon icon, String text){
        super(text, icon);
        setBounds(x, y, w, h);
        super.setHorizontalTextPosition(JButton.CENTER);
    }
}
